package com.lagou.rabbitmq.mapper;

import com.lagou.rabbitmq.entity.OrderInfo;
import org.springframework.stereotype.Component;

@Component
public interface OrderInfoMapper {

    void add(OrderInfo orderInfo);

    OrderInfo getOrderInfoById(Long userId, Long orderId);

    Integer getOrderStatusById(Long userId, Long orderId);

    void invalid(Long orderId);

    void paid(Long userId, Long orderId);
}
